#include "printf.h"
#include "Package.h"

module DataC {
	provides interface Data;
}
implementation {

	Package p;

	command void Data.Text2(char * text, int32_t value) {
		printf("%s %i\r\n", text, value);
		printfflush();
	}

	command void Data.Text1(char * text) {
		printf("%s\r\n", text);
		printfflush();
	}

	command void Data.Stream(Package * pack) {
		printf("%i;", pack->id);
		printf("%i;", pack->rssi);
		printf("\r\n");
		printfflush();
	}
}